package com.foreverwin.mes.meapi.mapper;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.foreverwin.mes.meapi.model.WorkCenter;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Syngna
 * @since 2020-01-13
 */
@Repository
public interface WorkCenterMapper extends BaseMapper<WorkCenter> {

    List<WorkCenter> selectList(@Param("locale") String locale, @Param("ew") Wrapper<WorkCenter> wrapper);

    WorkCenter selectByResource(@Param("resourceBO") String resourceBO);

    List<WorkCenter> selectParentByWorkCenterOrResourceBo(@Param("workCenterOrResourceBo") String workCenterOrResourceBo);
}